<?php
/**
 * OaApplyItem数据模型
 */
class OaApplyItemTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_apply_item',
			'title' => '审批条目',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => 0,
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [
			'title' => [
					'title' => '类别',
					'come_from' => 0,
					'width' => '',
					'is_sort' => 0,
					'name' => 'title',
					'function' => '',
					'href' => [ ]
			],
			'pictures' => [
					'title' => '图片',
					'come_from' => 0,
					'width' => '',
					'is_sort' => 0,
					'name' => 'pictures',
					'function' => '',
					'href' => [ ]
			]
	];
	
	// 字段定义
	public $fields = [
			'application_id' => [
					'title' => '申请ID',
					'field' => 'int(10) NOT NULL',
					'type' => 'string',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'type' => [
					'title' => '类别',
					'type' => 'string',
					'field' => 'varchar(255) NOT NULL',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'pictures' => [
					'title' => '图片',
					'type' => 'mult_picture',
					'field' => 'varchar(1024) NULL',
					'remark' => '图片url',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'content' => [
					'title' => '详细内容',
					'field' => 'text NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'comment' => [
					'title' => '审批意见',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'description' => [
					'title' => '用途描述',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'total' => [
					'title' => '总数',
					'type' => 'num',
					'field' => 'float(10,2) NULL',
					'remark' => '金额等数据',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'itinerary_id' => [
					'title' => '行程ID',
					'type' => 'string',
					'field' => 'int(10) NULL',
					'is_show' => 0,
					'is_must' => 0
			]
	];
}	